<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');


$route['^search_file$']                 = 'customers/customers/search_file';
$route['^select_customer_file']         = 'customers/customers/select_customer_file';
$route['^ho-so/([\w\d-]+)$']            = 'customers/customers/dispatcher/detail_customer_file/$1';
$route['^tim-ho-so$']          = 'customers/customers/dispatcher/search_file';
/*******************************************************************************/
// Phần backend-routing, không cần thay đổi cho các dự án của khách hàng
// chỉ thay đổi trong những trường hợp thực sự cần thiết
/*******************************************************************************/
// Quản lý người dùng
$route['^dashboard/customers$']                          = 'customers/customers_admin/dispatcher/list_customer/1';
$route['^dashboard/customers/page-(\d+)$']               = 'customers/customers_admin/dispatcher/list_customer/$1';
$route['^dashboard/customers/add$']                      = 'customers/customers_admin/dispatcher/add_customer/';
$route['^dashboard/customers/edit/(\d+)$']               = 'customers/customers_admin/dispatcher/edit_customer/$1';
$route['^dashboard/customers/delete/(\d+)$']             = 'customers/customers_admin/dispatcher/delete_customer/$1';
$route['^dashboard/customers/detail/(\d+)$']             = 'customers/customers_admin/dispatcher/detail_customer/$1/1';
$route['^dashboard/customers/detail/(\d+)/page-(\d+)$']  = 'customers/customers_admin/dispatcher/detail_customer/$1/$2';
$route['^dashboard/customers/detail/(\d+)/add$']         = 'customers/customers_admin/dispatcher/add_customer_file/$1';
$route['^dashboard/customers/detail/(\d+)/edit/(\d+)$']  = 'customers/customers_admin/dispatcher/edit_customer_file/$1/$2';
$route['^dashboard/customers/detail/(\d+)/delete/(\d+)$']= 'customers/customers_admin/delete_customer_file/$1/$2';


/*******************************************************************************/
// Kết thúc phần backend-routing
/*******************************************************************************/